#ifndef COLOR_SHADER_PROGRAM_H
#define COLOR_SHADER_PROGRAM_H

#include <QOpenGLFunctions>
#include <QOpenGLShader>
#include <QOpenGLShaderProgram>
#include "shader_program.h"

class ColorShaderProgram : public ShaderProgram {
    public:
        explicit ColorShaderProgram(const char* vetexShaderSrc, const char* fragmentShaderSrc):
            ShaderProgram(vetexShaderSrc, fragmentShaderSrc) {
                m_aColor= m_program->attributeLocation("a_Color");
            };
        ~ColorShaderProgram() = default;

    public:
        inline int getAttrColor() {
            return m_aColor;
        };

    private:
        int m_aColor = -1;
};
#endif // COLOR_SHADER_PROGRAM_H
